:root {
    --primary: #4e73df;
    --secondary: #6c757d;
    --success: #1cc88a;
    --info: #36b9cc;
    --warning: #f6c23e;
    --danger: #e74a3b;
    --light: #f8f9fc;
    --dark: #5a5c69;
}

body {
    background-color: #f5f7fb;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.dashboard-header {
    background-color: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #eaeaea;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 统一卡片样式 */
.dashboard-card {
    border-radius: 0.75rem;
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.08);
    border: none;
    transition: transform 0.3s ease;
    background-color: #ffffff;
    margin-bottom: 1.5rem;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.12);
}

.card-header {
    background-color: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
    border-radius: 0.75rem 0.75rem 0 0 !important;
    padding: 1.25rem 1.5rem;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4e73df;
    margin-bottom: 0.25rem;
}

.card-subtitle {
    font-size: 0.85rem;
    color: #6c757d;
}

.card-footer {
    background-color: #f8f9fc;
    border-top: 1px solid #e3e6f0;
    padding: 0.75rem 1.5rem;
}

/* 表格样式 */
.sales-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.sales-table th {
    background-color: #f8f9fc;
    color: #4e73df;
    font-weight: 600;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e3e6f0;
}

.sales-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e3e6f0;
    vertical-align: middle;
}

.sales-table tr:last-child td {
    border-bottom: none;
}

.sales-table tr:hover {
    background-color: #f8f9fa;
}

/* 状态标签 */
.status-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
}

.status-pending {
    background-color: rgba(243, 156, 18, 0.15);
    color: #f39c12;
}

.status-approved {
    background-color: rgba(39, 174, 96, 0.15);
    color: #1cc88a;
}

/* 操作按钮 */
.action-btn {
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}

/* 搜索框样式 */
.search-container {
    background: white;
    border-radius: 30px;
    padding: 0.5rem 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    max-width: 400px;
    margin-bottom: 1.5rem;
}

.search-container input {
    border: none;
    outline: none;
    flex: 1;
    background: transparent;
    padding: 0.5rem 0;
}

.search-container button {
    background: transparent;
    border: none;
    color: #4e73df;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 2.5rem 1rem;
}

.empty-state i {
    font-size: 3.5rem;
    color: #d1d3e2;
    margin-bottom: 1.5rem;
}

/* 警告框样式 */
.alert-success {
    background-color: #d1e7dd;
    border-color: #badbcc;
    color: #0f5132;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c2c7;
    color: #842029;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffecb5;
    color: #664d03;
}

/* 操作按钮组 */
.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-outline-primary {
    border-color: #4e73df;
    color: #4e73df;
}

.btn-outline-primary:hover {
    background-color: #4e73df;
    color: white;
}

.btn-outline-danger {
    border-color: #e74a3b;
    color: #e74a3b;
}

.btn-outline-danger:hover {
    background-color: #e74a3b;
    color: white;
}
